package com.chenliang.sc.config;

import com.chenliang.sc.po.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: springcase
 * @description:
 * @author: 陈亮
 * @create: 2022-06-09 18:34
 */
@Configuration
public class UserBean {

    @Bean
    public User user() {
        User user = new User();
        user.setId(1);
        user.setName("陈亮");

        return user;
    }
}
